.custom-checkbox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}



input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox label {
    cursor: pointer;
    position: relative;
    line-height: 1.2;
}

    .custom-checkbox label::before {
        content: '';
        display: inline-block;
        margin-left: 5px;
        height: 13px;
        width: 13px;
        margin-bottom: -2px;
        background-color: white;
        border: 1px solid var(--color-primary);
        border-radius: 3px;
    }

.custom-checkbox input:checked + label::before {
    background-color: var(--color-primary);
}
.custom-checkbox input[disabled] + label::before {
    border-color: lightgray;
}

.custom-checkbox input[disabled]:checked + label::before {
    background-color: lightgray;
}

/* Style the checkmark/indicator */
.custom-checkbox input:checked + label::after {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 9px;
    right: 0;
    text-align: center;
    width: 13px;
    top: 3.6px;
    /* top: calc(50% - -1px); */
    /* transform: translateY(-50%); */
}


[dir='ltr'] .custom-checkbox input:checked + label::after {
    left: 0;
    right: auto;
}

[dir='ltr'] .custom-checkbox label::before {
    margin-right: 5px;
    margin-left: 0;
}




    .custom-checkbox .help-block {
        flex: 1 1 100%;
        font-weight: normal;
        margin-right: 18px;
        line-height: 1;
        font-size: 0.9em;
    }

i.help,
.custom-switch i,
.custom-checkbox i {
    margin: 0 5px;
    background: #b8b8ff;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5;
    color: white;
    cursor: pointer;
    text-align: center;
    font-size: 9px;
    border-radius: 100%;
}

/*#region Linear */

.linear .custom-checkbox label::before {
    border-radius: 100%;
    height: 15px;
    width: 15px;
    margin-bottom: -2px;
}

.linear .custom-checkbox input:checked + label::after {
    width: 15px;
}

.linear .custom-checkbox {
    position: relative;
}

/*.linear [data-checked='true']:not(:first-child) .custom-checkbox:after {
    content: '';
    width: 3px;
    height: 15px;
    background-color: var(--color-primary);
    right: 14px;
    position: absolute;
    top: -8px;
}*/
/*#endregion */

/* typical phone screen resolution */
@media only screen and (max-width : 667px) {
    .custom-checkbox input:checked + label::after {
        top: 5.4px;
    }
}
